TEX=manual

all: $(TEX)

$(TEX): $(TEX).tex
	@echo "\n===\nmaking $@\n===\n"
	pdflatex --shell-escape $@
	#bibtex   $@
	pdflatex --shell-escape $@
	#pdflatex --shell-escape $@
	@echo "\n===\ncompiled $@\n===\n"

spellcheck:
	aspell -c -t $(TEX).tex -d en_US

clean:
	rm -rf *.acn *.acr *.alg *.aux *.bbl *.blg *.glg *.glo *.gls *.glsdefs *.ist *.loa *.lof *.lot *.cls *.hd *.idx *.ilg *.ind *.log *.out *.toc *.pdf *.fdb_latexmk *.fls *.synctex.gz *.lol *.bak _minted-*

.PHONY: all $(TEX) clean
